package com.bdqn.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@Data
@ToString
@NoArgsConstructor
@TableName("sys_user")
public class SysUser implements Serializable {
  @TableId(type = IdType.AUTO)
  @TableField("usr_id")
  private long usrId;

  @TableField("usr_name")
  private String usrName;

//  @TableField("usr_password")
  private String usrPassword;

//  @TableField("usr_role_id")
  private long usrRoleId;

//  @TableField("usr_flag")
  private long usrFlag;

  public SysUser(String usrName, String usrPassword, long usrRoleId, long usrFlag) {
    this.usrName = usrName;
    this.usrPassword = usrPassword;
    this.usrRoleId = usrRoleId;
    this.usrFlag = usrFlag;
  }
}
